package cn.ztydata.teachingsystem.heaven.web.dto.speakComment;

import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;

/**
 * Created by wl on 2015/3/21.
 */
public class SpeakDto {

    private Long id; //ID

    @NotBlank(message = "发言内容不能为空")
    private String content; //发言内容

    private Long userId; //创建人ID
    private Integer roleId; //创建人角色（0老师  1学生）

    private String userName; //创建人姓名
    private String userPhoto; //创建人头像

    private String time; //创建时间

    @Min(value = 1, message = "群组编号不合法")
    private Long groupId; //群组编号

    @Range(min = 0, max = 3, message = "群组类型值不合法")
    private Integer groupType; //群组类型

    private Long replyCount; //回复数

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Integer getGroupType() {
        return groupType;
    }

    public void setGroupType(Integer groupType) {
        this.groupType = groupType;
    }

    public Long getReplyCount() {
        return replyCount;
    }

    public void setReplyCount(Long replyCount) {
        this.replyCount = replyCount;
    }
}
